package com.zdp.contentcenter.controller.content;

import com.zdp.contentcenter.auth.CheckLogin;
import com.zdp.contentcenter.domain.dto.content.ShareDTO;
import com.zdp.contentcenter.service.content.ShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author sesshomaru
 * @date 2020/9/17 0:35
 */
@RestController
@RequestMapping("/shares")
public class ContentController {

    @Autowired
    private ShareService shareService;

    @CheckLogin
    @GetMapping("/{id}")
    public ShareDTO findById(@PathVariable Integer id){
        return this.shareService.findById(id);
    }
}
